Selecting log snapshots for export in an automated data storage library

ABSTRACT

Embodiments for selecting log snapshots for export in an automated data storage library by a processor. One or more log snapshots of an automated data storage library of an event displayed on a user interface of a device may be selected for exporting according to user defined criteria such that the one or more snapshots relate to the event or trigger, wherein the user interface provides an events table for searching and locating the event.

BACKGROUND OF THE INVENTION Field of the Invention

The present invention relates in general to computing systems, and moreparticularly to, various embodiments for selecting log snapshots forexport in an automated data storage library using a computing processor.

Description of the Related Art

Data storage libraries provide a means of storing large amounts of datafor host computer systems. Automated data storage libraries are knownfor providing cost effective storage and retrieval of large quantitiesof data, typically from data storage cartridges stored in storage slotsof the library. The libraries typically comprise large numbers of datastorage media that are stored in storage shelves, numbers of datastorage drives to read and write data with respect to the data storagemedia, one or more robot accessors to access the data storage media tomove the data storage media between the storage shelves and data storagedrives, and control units to control the operation of the library andcontrol the flow of data and information between the library and hostcomputer systems. The data storage cartridges are typically extractedfrom the storage slots, placed in the storage slots, and transportedwithin the library by one or more accessors.

SUMMARY OF THE INVENTION

Various embodiments for selecting log snapshots for export in anautomated data storage library by a processor, are provided. In oneembodiment, by way of example only, a method for selecting log snapshotsfor export in an automated data storage library, again by a processor,is provided. One or more log snapshots of an automated data storagelibrary of an event displayed on a user interface of a device may beselected for exporting according to user defined criteria such that theone or more snapshots relate to the event or trigger, wherein the userinterface provides an events table for searching and locating the event.

BRIEF DESCRIPTION OF THE DRAWINGS

In order that the advantages of the invention will be readilyunderstood, a more particular description of the invention brieflydescribed above will be rendered by reference to specific embodimentsthat are illustrated in the appended drawings. Understanding that thesedrawings depict only typical embodiments of the invention and are nottherefore to be considered to be limiting of its scope, the inventionwill be described and explained with additional specificity and detailthrough the use of the accompanying drawings, in which:

FIG. 1 is a block diagram of an automated data storage library inaccordance with an embodiment of the present invention;

FIG. 2 is a block diagram of a frame of the automated data storagelibrary of FIG. 1, with the view specifically depicting an exemplarybasic configuration of the internal components of a library;

FIG. 3 is a block diagram of the automated data storage library of FIGS.1 and 2, with the diagram depicting a library that employs a distributedsystem of modules with a plurality of processor nodes;

FIG. 4 is a block diagram depicting an exemplary controllerconfiguration;

FIGS. 5A and 5B are isometric views of the front and rear of a datastorage drive of the automated data storage library of FIGS. 1, 2 and 3;

FIG. 6 is an isometric view of an example of an element, such as acartridge, which may be placed in a storage slot of the automated datastorage library of FIGS. 1, 2 and 3, in accordance with an embodiment ofthe present invention;

FIG. 7 depicts a table or list having one or more events that may bedisplayed, where the events may be searched and/or browsed in accordancewith aspects of the present invention;

FIG. 8 is a block diagram depicting exemplary functional componentsaccording to various mechanisms of the illustrated embodiments inaccordance with aspects of the present invention;

FIG. 9 is a block diagram depicting additional functional componentsaccording to various mechanisms of the illustrated embodiments inaccordance with aspects of the present invention;

FIG. 10 a flowchart diagram depicting an exemplary method for storinglog snapshots in an automated data storage library by a processor; againin which aspects of the present invention may be realized;

FIG. 11 an additional flowchart diagram depicting an exemplary methodfor storing log snapshots in an automated data storage library by aprocessor; again in which aspects of the present invention may berealized; and

FIG. 12 is an additional flowchart diagram depicting an additionalexemplary method for selecting log snapshots for export in an automateddata storage library by a processor; again in which aspects of thepresent invention may be realized.

DETAILED DESCRIPTION OF THE DRAWINGS

As previously stated, automated data storage libraries provide a meansfor storing large quantities of data on data storage media that are notpermanently mounted in data storage drives, and that are stored in areadily available form on storage shelves or slots. One or more robotaccessors retrieve selected data storage media from storage shelves andprovide them to data storage drives. Typically, data stored on datastorage media of an automated data storage library, once requested, isneeded quickly. Automated data storage libraries may have logs forproviding diagnostic information related to the operation and failure ofthe product. Logs may be exported through a user interface (e.g., a webuser interface or command line interface). For example, when a libraryencounters a problem, an operator or service technician may use a webuser interface on a customer port or a service port to collect logsbefore servicing the product.

However, a single log with the most recent activity relating to anautomated data storage library may not be sufficient because the log canwrap (thus resulting in a loss of information) before the log may beactually exported or downloaded by a user. In addition, as automateddata storage libraries are becoming increasingly complex, multiple logsnapshots are required to capture all of the potential triggers orevents needed to determine a root cause of a problem. For example, logsmay be saved based on library errors, drive errors, doors opening,service being performed, host errors, etc.

Furthermore, when a user exports a log from a system without theembodiments as described herein, either there is only one log with themost recent activity or there may be multiple logs that are aggregatedand then exported. The logs are aggregated at the time of, or just priorto, the export request, which may not be sufficient given the exportrequest may not occur immediately following something that needs to beinvestigated in the log. For example, a library problem may occur on aweekend and a user may not see that the library had a problem forseveral days. Important information related to the problem may be lost(e.g. overwritten by newer data) by the time an export operation isinitiated.

Also, one or more trigger events can lead to a large number of logsnapshots that may occur at some amount of frequency. Currently, thereis no defined way to predict which of the many log snapshots taken mayactually be needed later for analysis. For example, if a libraryperformed a complete end-to-end aggregation of a log snapshot every timea trigger event occurs, the library performance is negatively impactedand/or may even compromise the stability of the library (e.g. result inerrors). Furthermore, a current challenge is determining which log is acorrect log to export based on what the user is interested inevaluating.

Given the potentially large number of logs to store, a need exists toselect logs for export in an automated data storage library. Also, aneed exists to reduce the consumption of processor bandwidth, storagebandwidth and communication bandwidth to aggregate the log data in alibrary that comprises a plurality of nodes, two or more of which arecapable of creating or storing logs (e.g., nodes of a distributedcontrol system, data storage drives, other components associated withthe automated data storage library, etc.).

Thus, the present technology provides a solution for selecting logsnapshots for export in an automated data storage library. An automateddata storage library may provide a user interface where events and/orerrors can be correlated to a particular log snapshot. An events tablemay be used (e.g., by a user) to identify and/or locate an event ofrelevant interest. An action may be selected using the events table forexporting the corresponding log. In an additional aspect, the automateddata storage library may allow a user to enter date and/or timeinformation related to the time period for needing log information. Theautomated data storage library provides a “best match” (e.g., presents amost closely matched log to a user), based on the date and/or timeinformation related criteria.

In one aspect, a log snapshot may be the result of saving one or morelogs to capture details about an event or trigger. By saving the one ormore logs, a snapshot avoids the loss of data that may occur whenactivity continues to be logged, with the potential to overwriteimportant activity that was logged earlier. As a result, a snapshot maybe exported and evaluated at some later point in time. As used herein,exporting and downloading a log may refer to the same thing. A log (andtherefore a snapshot or log snapshot) may be used to evaluate anoperation or failure of the automated data storage library. The log(s)may comprise trace information (what was the library, drive or componentdoing), diagnostic information (what kinds of error or problems wereencountered), statistical information (what was the performance or usageof various automated data storage library components), etc. When acomplex system produces a number of log snapshots, the system may beunable pick a desired or selected snapshot for export. Moreover, the logsnapshots may be large enough in size and large enough in number thatexporting all of the log snapshots reduces processing capacity andefficiency. In addition, efficiency is reduced by having to perform ananalysis on the total number of snapshots when that which is to besearched for may be undefined and/or unknown (e.g., it may not be clearexactly what a user is looking for).

In one aspect, a user may enter a date and/or time (herein date and/ortime is referred to as date/time and time period refers to a date and/ortime period) and the automated data storage library may search a list oflog snapshots to find a match (a most closely related match or “bestmatch” that have data, log content, date/time information, one or moreattributes, characteristics, information, creation data, modificationdata, and/or patterns that are most closely related), which may comprisea single snapshot and/or more than one snapshot. A user may enter adate/time that may be associated with something that has occurred (e.g.a host application encountered an error). The library may use snapshotdate/time information to determine the best match.

For example, many file systems may have file date/time informationrelated to file creation, last modification, and the like.Alternatively, the library may store data for each log snapshot and thedata may contain date/time information that the library uses todetermine a best match. For example, the library may maintain a tablethat contains identifiers associated with log snapshots and date/timeinformation for each log snapshot in the table. Still further, thelibrary may search the contents of one or more snapshots to findembedded date/time information that is most closely related to the logcontents of the snapshot to determine the best match. For example, a logsnapshot may contain trace information and the trace information mayhave date/time information associated with each entry. The library mayestablish a start date/time and an end date/time associated with eachlog snapshot based on the first and last entry in the trace information.

In one aspect, an event may be an error, action, or activity that isrecorded by the library. Some events may not trigger a log snapshot. Forexample, a user logging into the library, a drive cleaning, a logicallibrary that is almost full of cartridges (e.g., greater than a definedpercentage), the library is almost out of licensed storage slots (e.g.,greater than a defined percentage), and the like. Some events maytrigger a log snapshot. For example, a library error (e.g. the librarycannot move a cartridge), drive error (e.g. a drive cannot unload acartridge), host error (e.g. a logical unit reset or an illegalrequest), service action (e.g. logging into the library under a servicerole, pausing the library or replacing a library component), librarydoor open (e.g. a front door, back door or service door), and the like.Some events may trigger a log snapshot yet one or more filtering rulesmay block the log snapshot at certain times or under certain conditions.For example, a library may have a finite storage capacity and be unableto store and maintain the large number of log snapshots that may occurfor a given time period. Thus, one or more snapshot filters may beemployed, such as only allowing one snapshot for a particular eventwithin a defined time period (e.g., a 24-hour period) and/or only savinga selected number of snapshots prior to deleting one or more snapshotsolder than a defined snapshot storage time frame.

In one aspect, one or more events may be displayed as a table or a list,where the events may be searched and/or browsed. Herein, references toevents in a table may refer to events in a table and/or a list. Eventsmay have a state (e.g. active or inactive) and the state may changebased on a user action (e.g. manually marking the event inactive) orbased on a change to the underlying trigger (e.g. a defective powersupply results in an event but a replacement of that power supplyremoves the event or marks the event inactive).

In one embodiment, events may be paired with log snapshots so a useronly has to find the event of interest and then they may select anexport action for exporting the snapshot associated with the identifiedevent of interest. In a related embodiment, the event may include anindication of an associated log snapshot. In an additional aspect, auser may select the event and then select an export action. For example,there may be an export button that can be activated after selecting thedesired event. In another example, after selecting one or more events,there may be an actions drop-down option that may contain an exportaction. In an additional example, a user may perform an action relatedto an external device associated with the library (e.g., a mouse deviceof a computer associated with, or connected to, the library such thatperforming a right click action of a mouse button to provide a contextmenu that contains an export action).

Turning now to an additional embodiment, the present technology alsoprovides a solution for managing log snapshots in an automated datastorage library that comprises two or more nodes associated with theautomated data storage library. The nodes may comprise librarycontrollers (e.g., one or more library controllers, backup or redundantlibrary controllers, nodes of a library distributed control system,etc.), drive controllers (e.g., one or more processors of an automateddata storage drive), component controllers (e.g., one or more processorsof a component of the library such as power supplies, Ethernet switches,etc.), device controllers (e.g., one or more processors of devicesconnected to the library such as a management console, a servicemachine, an encryption key server, etc.). The nodes perform a functionof the automated data storage library because they are either acomponent of the library (e.g., drives, power supplies, librarycontroller, nodes of a library distributed control system, etc.) orbecause they help perform a service or function of the library (e.g., anencryption key server helps encrypt data for the automated data storagelibrary, a service console helps with monitoring and servicing of thelibrary, a management interface helps a user interact with the library,etc.). A log snapshot may be generated by, or saved on, a nodeassociated with the automated data storage library for subsequentretrieval such that each of a plurality of saved log snapshots savedfrom a plurality of nodes in the distributed control system areaggregated for exporting to a user. In one aspect, the automated datastorage library is a tape library.

For example, upon receiving a trigger for a snapshot, two or more nodesof a distributed control system (multiple processors or nodes that maybe capable of each having their own logs) saves one or more logs (e.g. asingle trigger may result in one or more logs from each node in thedistributed control system) for later retrieval. When a user needs toexport (download) the snapshot (saved logs), the saved logs related to aspecific trigger event (or saved time) may be aggregated from each oneof the nodes in the distributed control system at that time of theexport request (e.g., aggregated on demand).

The one or more logs include information (e.g., trace information)related to the library, such as, diagnostic information (e.g., whatkinds of error or problems were encountered), statistical information(e.g., what was the performance or usage of various library components),configuration information, backup information, database information, ora combination thereof. Log snapshots may be employed to save logsimmediately following a trigger (e.g. a library detected error orservice action being performed). A log snapshot comprises saving one ormore logs for potential export at a later time. This ensures that anydata related to a trigger (e.g. library detected error) is actuallyrecorded in the log snapshot with no possibility of it being overwrittenbefore someone has a chance to export the log(s). The aggregation of alog snapshot occurs at the time of, or just after, the export request.Herein, exporting and downloading a log refer to the same thing andaggregation refers to collecting one or more related logs, files,structures, databases, tables, packets, etc. The aggregation process maycombine some or all of the collection or it may preserve the originaldata format.

In an additional aspect, the automated data storage library may comprisea distributed control system that may have two or more nodes performinga function of the library. For example, a redundant library may have twolibrary controllers so that one library controller can take over whenthe other library controller fails. In another example, a library mayhave a node associated with a movement of an accessor (e.g. a node thatcontrols motors to move an accessor in a horizontal and verticaldirection), a node associated with grabbing data storage cartridges(e.g. a node that controls actuators or motors to grab or release acartridge), a node associated with drive communication (e.g. a node ineach drive frame that communicates with the drives), etc. A node maycomprise one or more processors or controllers which may have theability to create, store, and/or collect logs.

A log snapshot may be saved when a trigger event is detected. That is, alog snapshot may be saved when a library error is detected (e.g., afailure to move a cartridge to a drive), drive error is detected (e.g.,a failure to read data from a cartridge), component error is detected(e.g., a power supply failure), device error is detected (e.g., failureof an encryption key server, service console, or management interfaceassociated with the library), host error is detected (e.g., a host errorassociated with a host application or device driver such as sending acommand to the library or drive that results in an illegal request),activation of a designated physical or logical log collection mechanismis detected (e.g., a dedicated log collection button), when a librarydoor is open is detected, when a library door close is detected, when auser logs into the library under a service role, when a component isreplaced, reset of the library (e.g., part or all of the librarycontroller is reset), reset of a component (e.g., a power supply reset),reset of a device (e.g., a reset of an encryption key server, serviceconsole, or management interface associated with the library), reset ofa drive, detecting a new unique identifier (e.g., a component, device,or drive serial number or MAC address changes), and the like.

In one embodiment, when a trigger results in a log snapshot, each nodein the distributed control system may save its own snapshot (e.g., asnapshot of each individual node) and the saved snapshot on eachindividual node stays with the node until an export request is receivedor processed (that involves the snapshot on the particular node). If atsome point in time, a user requests a particular snapshot for export,the associated snapshots of each node may be aggregated and exported atthe time of request or “on demand”. In other words, the snapshot data issaved at the time of the trigger event, but it is not aggregated untilthe saved snapshot is actually needed, which may or may not occur. Thiseliminates processor bandwidth, communication bandwidth and storagebandwidth for any log snapshot that may not ever actually result in anexport request. This further provides additional advantages over thecurrent state of the art by only consuming library compute resources foraggregation until the saved snapshot is needed.

In addition to, or alternatively to, holding off the aggregation untilthe snapshots are actually needed, the aggregation of the savedsnapshots may occur as a background operation. Accordingly, the impactto the library compute resources may be reduced because the aggregationis spread out over a longer period of time in the background. Theaggregation of the saved snapshots may also occur when the library isnot executing any host commands (e.g., no host commands are detected).This provides significant advantage over the current state of the art bynot consuming any library compute resources if the library is performinga more critical task of executing host commands. The aggregation of thesaved snapshots may occur when the library is idle (e.g. when thelibrary is not doing anything). This has the advantage of not consumingany library compute resources if the library is performing any otheractions (e.g. executing operator commands, executing host commands,importing or exporting cartridges, performing drive cleaning, library ordrive calibration, etc.).

Since, according to the embodiments of this invention, the aggregationis not occurring at or around the time of the trigger, the library maybe constrained to manage the log snapshots on the individual nodes sosaved snapshots can be aggregated. In one aspect, a file name may beused to coordinate multiple logs for aggregation. For example, allrelated log snapshots may have correlating information in the file namesuch as, for example, an index or sequence number, date and/or timeinformation, etc. File metadata may also be used to correlate multiplelogs for aggregation.

For example, files have date/time information for when the file wascreated or modified and one or more of these metadata fields may be usedto determine which snapshots should be correlated. In anotherembodiment, a table, list, file or other data structure may be used tocorrelate which logs are related for aggregation. For example, thelibrary may comprise a log table that contains a list of snapshots andeach snapshot may have an index, sequence number, date and/or time, orother information in the table that allows the library to correlatedifferent snapshots for aggregation.

It should be noted that the present invention has application to anysuitable storage subsystem with an automated storage media and retrievallibrary for storing and accessing storage media located within thesubsystem. Further, storage media may be magnetic storage media such asmagnetic tape and magnetic disk, optical storage media such as compactdisk (CD) and digital versatile disk (DVD), electronic storage mediasuch as swappable flash electrically programmable read only memory(flash EPROM, CompactFlash, secure digital (“SD”), micro SD, etc.) orany suitable equivalent non-volatile removable storage media.

Turning now to FIGS. 1 and 2, an automated data storage library 10 whichstores and retrieves data storage cartridges containing data storagemedia (not shown) at multi-cartridge deep slot cells 100 and singlecartridge storage slots 16. It is noted that references to “data storagemedia” herein refer to the recording media of data storage cartridges,and for purposes herein the two terms may also be used synonymously. Thelibrary of FIG. 1 comprises a left hand service bay 13, one or morestorage frames 11, and right hand service bay 14. As will be discussed,a frame may comprise an expansion component of the library. Frames maybe added or removed to expand or reduce the size and/or functionality ofthe library. Frames may comprise additional storage slots, deep slotcells, drives, import/export stations, accessors, operator panels, etc.

FIG. 2 shows an example of a storage frame 11, which is the base frameof the library 10 and is contemplated to be the minimum configuration ofthe library. In this minimum configuration, there is only a singleaccessor (i.e., there are no redundant accessors) and there is noservice bay. The library 10 is arranged for accessing data storage mediain response to commands from at least one external host system (notshown), and comprises a plurality of storage slots 16 on front wall 17and a plurality of multi-cartridge deep slot cells 100 on rear wall 19,both for storing data storage cartridges that contain data storagemedia. The library 10 may also include one or more doors 49 (e.g., afront door, a side door, and/or a back door). That is, the library 10access door 49 may comprise a door, hatch, cover, panel, magazine, orany other structure or assembly that may provide access to any internalportion of the library 10 that is not normally accessible.

The storage slots 16 are configured to store a single data storagecartridge, and the multi-cartridge deep slot cells 100 are configured tostore a plurality of data storage cartridges arranged in sequentialorder of tiers from front to rear. The library also comprises at leastone data storage drive 15 for reading and/or writing data with respectto the data storage media; and a first accessor 18 for transporting thedata storage cartridges between the plurality of storage slots 16, themulti-cartridge deep slot cells 100, and the data storage drive(s) 15.The data storage drives 15 may be optical disk drives or magnetic tapedrives, or other types of data storage drives as are used to read and/orwrite data with respect to the data storage media. The storage frame 11may optionally comprise an operator panel 23 or other user interface,such as a web-based interface, which allows a user to interact with thelibrary. The storage frame 11 may optionally comprise an upper I/Ostation 24 and/or a lower I/O station 25, which allows data storagecartridges to be added to the library inventory and/or removed from thelibrary without disrupting library operation. Herein, adding datastorage cartridges to the library may also be called “inserting” or“importing” data storage cartridges. Herein, removing data storagecartridges from the library may also be called “ejecting” or “exporting”data storage cartridges. Also herein, slots of the multi-cartridge deepslot cells 100, the single cartridge storage slots 16, the cartridgeslot of drive(s) 15, and the slots of I/O station 24, 25 may all bereferred to as storage slots. Thus, any location at which a data storagecartridge may reside within the library 10 may be referred to as astorage slot. The library 10 may comprise one or more storage frames 11,each having storage slots 16 and/or multi-cartridge deep slot cells 100accessible by first accessor 18.

As described above, the storage frames 11 may be configured withdifferent components depending upon the intended function. Oneconfiguration of storage frame 11 may comprise storage slots 16 and/ormulti-cartridge deep slot cells 100, data storage drive(s) 15, and otheroptional components to store and retrieve data from the data storagecartridges, and another storage frame 11 may comprise storage slots 16and/or multi-cartridge deep slot cells 100 and no other components.

The first accessor 18 comprises a gripper assembly 20 for gripping oneor more data storage cartridges. The gripper assembly may include one ormore sensors 22, mounted on or near the gripper 20, to “read”identifying information about the data storage cartridge and to locatefiducial marks for calibrating the library.

FIG. 3 illustrates an embodiment of an automated data storage library 10of FIGS. 1 and 2, which employs a controller arranged as a distributedsystem of modules with a plurality of processor nodes. While theautomated data storage library 10 is illustrated as employing adistributed control system, the present invention may be implemented inautomated data storage libraries regardless of control configuration,such as, but not limited to, an automated data storage library havingone or more library controllers that are not distributed.

The library of FIG. 3 comprises one or more storage frames 11, a lefthand service bay 13 and a right hand service bay 14. The left handservice bay 13 is shown with a first accessor 18. As discussed above,the first accessor 18 comprises a gripper assembly 20 and may includeone or more sensors 22 to “read” identifying information about the datastorage cartridges and to locate and calibrate fiducial marks. The righthand service bay 14 is shown with a second accessor 28. The secondaccessor 28 comprises a gripper assembly 30 and may include one or moresensors 32 to “read” identifying information about the data storagecartridges and to locate fiducial marks. In the event of a failure orother unavailability of the first accessor 18, or its gripper 20, etc.,the second accessor 28 may perform some or all of the functions of thefirst accessor 18. The two accessors 18, 28 may share one or moremechanical paths or they may comprise completely independent mechanicalpaths. In one example, the accessors 18, 28 may have a common horizontalrail with independent vertical rails. The first accessor 18 and thesecond accessor 28 are described as first and second for descriptivepurposes only and this description is not meant to limit either accessorto an association with either the left hand service bay 13, or the righthand service bay 14.

In the exemplary library, first accessor 18 and second accessor 28 movetheir grippers in at least two directions, called the horizontal “X”direction and vertical “Y” direction, to retrieve and grip, or todeliver and release the data storage cartridge at the storage slots 16and multi-cartridge deep slot cells 100, or input/output stations 24,25, and to mount and demount the data storage cartridge at the datastorage drives 15.

The exemplary library 10 receives commands from one or more host systems40, 41 or 42. The host systems, such as host servers, communicate withthe library directly, e.g., on path 80, through one or more controlports (not shown), or through one or more data storage drives 15 onpaths 81, 82, providing commands to access particular data storagecartridges and move the cartridges, for example, between the storageslots 16 and the data storage drives 15. The commands are typicallylogical commands identifying the cartridges or cartridge media and/orlogical locations for accessing the media. The terms “commands” and“work requests” are used interchangeably herein to refer to suchcommunications from the host system 40, 41 or 42 to the library 10 asare intended to result in accessing particular data storage media withinthe library 10.

The exemplary library is controlled by a library controller, which inone embodiment comprises a distributed control system receiving thelogical commands from hosts, determining the required actions, andconverting the actions to physical movements of and actions by firstaccessor 18 and/or second accessor 28.

In the exemplary library, the distributed control system comprises aplurality of processor nodes, each having one or more computerprocessors. In one example of a distributed control system, acommunication processor node 50 may be located in a storage frame 11.The communication processor node provides a communication link forreceiving the host commands, either directly or through the drives 15,via at least one external interface, e.g., coupled to line 80.

The communication processor node 50 may additionally provide acommunication link 70 for communicating with the data storage drives 15.The communication processor node 50 may be located in the frame 11,close to the data storage drives 15. Additionally, in an example of adistributed processor system, one or more additional work processornodes are provided, which may comprise, e.g., a work processor node 52that may be located at first accessor 18, and that is coupled to thecommunication processor node 50 via a network 60, 157. Each workprocessor node may respond to received commands that are broadcast tothe work processor nodes from any communication processor node, and thework processor nodes may also direct the operation of the accessors,providing move commands. An XY processor node 55 may be provided and maybe located at an XY system of first accessor 18. The XY processor node55 is coupled to the network 60, 157, and is responsive to the movecommands, operating the XY system to position the gripper 20.

Also, an operator panel processor node 59 may be provided at theoptional operator panel 23 for providing an interface for communicatingbetween the operator panel and the communication processor node 50, thework processor nodes 52, 252, and/or the XY processor nodes 55, 255.

A network, for example comprising a common bus 60, is provided, couplingthe various processor nodes. The network may comprise a robust wiringnetwork, such as the commercially available CAN (Controller AreaNetwork) bus system, which is a multi-drop network, having a standardaccess protocol and wiring standards. Other networks, such as Ethernet,or a wireless network system, such as RF or infrared, may be employed inthe library as is known to those of skill in the art. In addition,multiple independent networks may also be used to couple the variousprocessor nodes.

The communication processor node 50 is coupled to each of the datastorage drives 15 of a storage frame 11, via lines 70, communicatingwith the drives and with host systems 40, 41 and 42. Alternatively, thehost systems may be directly coupled to the communication processor node50, at input 80 for example, or to control port devices (not shown)which connect the library to the host system(s) with a library interfacesimilar to the drive/library interface. As is known to those of skill inthe art, various communication arrangements may be employed forcommunication with the hosts and with the data storage drives. In theexample of FIG. 3, host connections 80 and 81 are SCSI busses. Bus 82comprises an example of a Fibre Channel bus which is a high speed serialdata interface, allowing transmission over greater distances than theSCSI bus systems.

The data storage drives 15 may be in close proximity to thecommunication processor node 50, and may employ a short distancecommunication scheme, such as SCSI, or a serial connection, such asRS-422. The data storage drives 15 are thus individually coupled to thecommunication processor node 50 by means of lines 70. Alternatively, thedata storage drives 15 may be coupled to the communication processornode 50 through one or more networks, such as a common bus network orEthernet.

Additional storage frames 11 may be provided and each is coupled to theadjacent storage frame. Any of the storage frames 11 may comprisecommunication processor nodes 50, storage slots 16, multi-cartridgestorage cells 100, data storage drives 15, and networks 60. Further, asdescribed above, the automated data storage library 10 may comprise aplurality of accessors. A second accessor 28, for example, is shown in aright hand service bay 14 of FIG. 3. The second accessor 28 may comprisea gripper 30 for accessing the data storage cartridges, and an XY system255 for moving the second accessor 28. The second accessor 28 may run onthe same horizontal mechanical path as first accessor 18, or on anadjacent path. The exemplary control system additionally comprises anextension network 200 forming a network coupled to network 60 of thestorage frame(s) 11 and to the network 157 of left hand service bay 13.Alternatively, one or more of the processor nodes (XY 55, WP 52, CP 50,OP 59, XY 255, and WP 252) may comprise dual networks (not shown) toallow independent redundant communication between the processor nodesand/or the accessors 18, 28.

In FIG. 3 and the accompanying description, the first and secondaccessors are associated with the left hand service bay 13 and the righthand service bay 14 respectively. This is for illustrative purposes andthere may not be an actual association. In addition, network 157 may notbe associated with the left hand service bay 13 and network 200 may notbe associated with the right hand service bay 14. Depending on thedesign of the library, it may not be necessary to have a left handservice bay 13 and/or a right hand service bay 14.

An automated data storage library 10 may comprise one or morecontrollers to direct the operation of the automated data storagelibrary. Host computers and data storage drives typically comprisesimilar controllers. A library controller may take many different formsand may comprise, for example but not limited to, an embedded system, adistributed control system, a personal computer, or a workstation.Essentially, the term “library controller” as used herein is intended inits broadest sense as a device that contains at least one computerprocessor, as such term is defined herein.

FIG. 4 shows a typical controller 400 with a processor 402, RAM (RandomAccess Memory) 403, nonvolatile memory 404, device specific circuits401, and I/O interface 405. Alternatively, the RAM 403 and/ornonvolatile memory 404 may be contained in the processor 402 as couldthe device specific circuits 401 and I/O interface 405. The processor402 may comprise, for example, an off-the-shelf microprocessor, customprocessor, FPGA (Field Programmable Gate Array), ASIC (ApplicationSpecific Integrated Circuit), discrete logic, or the like. The RAM(Random Access Memory) 403 may be used to hold variable data, stackdata, executable instructions, and the like. The nonvolatile memory 404may comprise any type of nonvolatile memory such as, but not limited to,EEPROM (Electrically Erasable Programmable Read Only Memory), flash PROM(Programmable Read Only Memory), battery backup RAM, CompactFlash (CF),Secure Digital (SD), micro-SD, and hard disk drives. The nonvolatilememory 404 may be used to hold the executable firmware and anynonvolatile data. The I/O interface 405 comprises a communicationinterface that allows the processor 402 to communicate with devicesexternal to the controller. Examples may comprise, but are not limitedto, serial interfaces (e.g., RS-232 or RS-422), USB (Universal SerialBus), Ethernet, or SCSI (Small Computer Systems Interface). The devicespecific circuits 401 provide additional hardware to enable thecontroller 400 to perform unique functions such as, but not limited to,motor control of a cartridge gripper. The device specific circuits 401may comprise electronics that provide, by way of example but notlimitation, Pulse Width Modulation (PWM) control, Analog to DigitalConversion (ADC), Digital to Analog Conversion (DAC), etc. In addition,all or part of the device specific circuits 401 may reside outside thecontroller 400.

While the automated data storage library 10 is described as employing adistributed control system, the present invention may be implemented invarious automated data storage libraries regardless of controlconfiguration, such as, but not limited to, an automated data storagelibrary having one or more library controllers that are not distributed.A library controller may comprise one or more dedicated controllers of aprior art library. For example, there may be a primary controller and abackup controller. In addition, a library controller may comprise one ormore processor nodes of a distributed control system. For example,communication processor node 50 (FIG. 3) may comprise the librarycontroller while the other processor nodes (if present) may assist thelibrary controller and/or may provide backup or redundant functionality.In another example, communication processor node 50 and work processornode 52 may work cooperatively to comprise the library controller whilethe other processor nodes (if present) may assist the library controllerand/or may provide backup or redundant functionality. Still further, allof the processor nodes may comprise the library controller. Herein,library controller may comprise a single processor or controller or itmay comprise multiple processors or controllers.

FIGS. 5A and 5B illustrate an embodiment of the front 501 and rear 502of a data storage drive 15. In the example, the data storage drive 15comprises a hot-swap drive canister. This is only an example and is notmeant to limit the invention to hot-swap drive canisters. In fact, anyconfiguration of data storage drive may be used whether or not itcomprises a hot-swap canister. A data storage cartridge may be placedinto the data storage drive 15 at opening 503. As discussed above, adata storage drive 15 is used to read and/or write data with respect tothe data storage media of a data storage cartridge, and may additionallycommunicate with a memory which is separate from the media and islocated within the cartridge.

FIG. 6 illustrates an embodiment of a data storage cartridge 610 withcartridge shell 611, front label area 620, and write protect switch 617.

As indicated herein, one or more events may be displayed as a table or alist, where the events may be searched and/or browsed, such as theevents table or list 700 of FIG. 7. The events table or list 700 mayinclude search capabilities where a user can search for a particularevent and/or a list of events based on one or more search criteria. Theevents table or list 700 may include sorting capabilities where a usercan sort the table or list of events (e.g. sorting events by a column inthe events table or list 700). The events of the events table or list700 may include information of the snapshot such as, for example, alocation, a type, time, a user, description, a state, an indication asto whether a log snapshot has been captured (e.g., as indicated in FIG.7 with a “check mark” (‘√’)), and/or an event number. In one aspect, thestate (e.g. active or inactive) may change based on an action (e.g. auser marking the event inactive) or based on a change to the underlyingtrigger (e.g. a defective power supply results in an event but areplacement of that power supply removes the event or marks the eventinactive).

In one embodiment, events may be paired with log snapshots so a useronly has to find the event of interest and then they may select anexport action for exporting the identified event of interest. In arelated embodiment, the event may include an indication of an associatedlog snapshot. For example, there may be a “log available” column in theevents table or list and a column may have a check mark in it toindicate that an associated log snapshot may be available for the eventin the same row of the events table or list. In an additional aspect, auser may select the event and then select an export action. For example,there may be an export button that can be activated after selecting thedesired event. In another example, after selecting one or more events,there may be an actions drop-down option that may contain an exportaction. In additional example, a user may perform an action related toan external device associated with the library (e.g., a mouse device ofa computer associated with the library such that performing a rightclick action of a mouse button to provide a context menu that containsan export action). In an additional example, a user may drag an objecton the screen (representing a particular event) to an export folder,container, action object, etc. to initiate an export operation.

Each row of the events table or list 700 may also represent a differentevent. A user may select one or more action items to select an actionfor any selected events. In one aspect, the action item may provide theability to export any logs associated with the selected events.Alternatively, a user may right-click an event row and produce a contextmenu, which may include an export Log item for exporting any logsassociated with the event. A log column may illustrate an example ofidentifying which event rows have logs available. In this example, thecheck mark may indicate in an event row that may have an associated logsnapshot. One or more columns in the events table or list 700 may besorted by clicking on a particular column. For example, the table may besorted by severity since it may be likely that someone is looking for alog associated with a serious event. In another example, the eventstable or list 700 may be sorted by date/time since a user may be lookingfor one or more logs, for example, that may be associated with somethingthat occurred on particular date and/or time.

Turning now to FIG. 8, a block diagram 800 depicting exemplaryfunctional components 800 according to various mechanisms of theillustrated embodiments, is shown. Automated data storage library 10 isagain shown, incorporating processing unit 802 (“processor”) to performvarious computational, data processing and other functionality inaccordance with various aspects of the present invention. Memory 804 mayinclude RAM (static RAM, SDRAM, DRAM, etc.), nonvolatile memory (batterybackup RAM, flash PROM, EEPROM, etc.), and/or other storage devices(hard drives, tape drives, optical disk drives, CompactFlash, MicroSD,SD, etc.). A snapshots module 808 is shown, along with an event tablemodule 806 and a user interface 810.

As one of ordinary skill in the art will appreciate, the depiction ofthe various functional units in an automated data storage library 10 isfor purposes of illustration, as the functional units may be locatedwithin automated data storage library 10 or elsewhere within and/orbetween distributed computing components or other components associatedwith automated data storage library 10. The snapshot module 808 mayinclude a data repository of various snapshots of the automated datastorage library 10 and may have associated metadata information. Thesnapshot module 808 may work in concert with processing unit 802 andmemory 804 to accomplish various aspects of the present invention, suchas, for example capturing a snapshot of one or more logs associated withthe automated data storage library 10 upon detection of a triggeringevent. The snapshot module 808 may include snapshots of one or more logsrelated to the items or actions associated with one or more events ortriggers as described herein. The snapshot module 808 may also monitorand store the snapshots and use a snapshot threshold, or a snapshotfilter in order to control an amount of saved snapshots.

Events table module 806 may work in concert with processing unit 802 andmemory 804 to accomplish various aspects of the present invention. Forexample, the events table module 806 may include identifiers associatedwith log snapshots and date/time information for each log snapshot andmay be used to search for a particular event or a list of events basedon the search criteria by an operator (user/technician) for exporting ordownloading. In one aspect, events table module 806 may undergo variousdata analytics functions associated with searching and detecting anevent. Events table module 806 may make decisions in conjunction withthe snapshot module 808 to select the event and an export action. As oneof ordinary skill in the art will appreciate, the events table module806 and snapshot module 808 may implement searching, sorting,classification, mathematical modeling, snapshot functionality, sensingfunctionality, or other data processing technologies to carry out thevarious mechanisms of the illustrated embodiments. As one of ordinaryskill in the art will appreciate, events table module 806 and/orsnapshot module 808 may be implemented in library firmware and may beexecuted by a single processor or by multiple processors. For example,different discrete or atomic operations associated with event tablemodule 806 and/or snapshot module 808 may be spread among multipleprocessors functions, threads, processes, code images, files, etc. Inaddition, events table module 806 and/or snapshot module 808 may beimplemented in library hardware such as FPGA (Field Programmable GateArray), ASIC (Application Specific Integrated Circuit), discrete logic,or the like. Still further, events table module 806 and/or snapshotmodule 808 may be implemented in a combination of library firmware andhardware.

In one aspect, logs may be exported via the user interface 810 (e.g., agraphical user interface). For example, an operator or servicetechnician may use the user interface 810 on a customer port or aservice port to export logs or snapshots associated with snapshot module808 before or after servicing the product. If a request is made forthese logs (e.g., a root cause analysis) the snapshot module 808 mayprovide to the user interface 810 one or more snapshots relating to oneor more events. In this way, most or all of the information in the oneor more logs captured via the snapshots are preserved. Thisfunctionality is illustrated by example with the user interface (GUI)810, which provides information from the processing unit 802 and memory804, or receives input and/or selection data from a user. In one aspect,the user interface (e.g., a graphical user interface ‘GUI’) may beassociated with the library 10. A login operation may be performed inthe user interface 810 and navigated therein to display a “servicescreen log download link” or selector (e.g., a button) in order toexport any necessary logs or snapshots to a storage device. The userinterface may have a remote network connection with the library. Forexample, the library may be at one location and a user may access thelibrary from a completely different location using an intranet orinternet connection. In addition, the user interface may be providedthrough a remote computer. For example, the library may provide a remoteservice capability that allows someone from the library supportorganization to remotely connect to the library for diagnostic purposes.In another example, the library may provide a “call home” service whereit contacts a remote support computer after certain errors or based on aperiodic interval. The “call home” service may provide logs to a supportcenter automatically.

Turning now to FIG. 9, a block diagram 900 depicting exemplaryfunctional components 900 according to various mechanisms of theillustrated embodiments, is shown. Automated data storage library 10 isagain shown, with node 924 incorporating processing unit 902 to performvarious computational, data processing and other functionality inaccordance with various aspects of the present invention. Memory 904 mayinclude RAM (static RAM, SDRAM, DRAM, etc.), nonvolatile memory (batterybackup RAM, flash PROM, EEPROM, etc.), and/or other storage devices(hard drives, tape drives, optical disk drives, CompactFlash, MicroSD,SD, etc.). A snapshot aggregation module 918 is shown, along with atrigger event detection module 906, user interface module 910 and asnapshot module 926. Also depicted is node 925 (illustrated as a singlenode for illustrated convenience but multiple nodes may be includedtherein) which may include processor 903, memory 905, trigger eventdetection module 907, snapshot module 927, user interface 911 andsnapshot aggregation module 919. Nodes 924, 925 represent controllersassociated with the library such as library controllers (e.g., one ormore library controllers, backup or redundant library controllers, nodesof a library distributed control system, etc.), drive controllers (e.g.,one or more processors of an automated data storage drive), componentcontrollers (e.g., one or more processors of a component of the librarysuch as power supplies, Ethernet switches, etc.), device controllers(e.g., one or more processors of devices connected to the library suchas a management console, a service machine, an encryption key server,etc.). Herein, a node, such as nodes 924 and 925, may comprise anycontroller, device, or component associated with the library that iscapable of generating or storing one or more logs.

In one aspect, snapshot module 926 may save one or more log snapshots ona node, such as node 924, of automated data storage library 10. Inaddition, snapshot module 927 may save one or more log snapshots on anode, such as node 925, of automated data storage library 10.Alternatively, the snapshot module of another node may save thesnapshot. For example, snapshot module 926 of node 924 may save asnapshot associated with node 925. This may be useful when node 925 is adata storage drive, or another component, and that node does not havethe capability to store snapshots for later retrieval. The snapshots maybe saved for subsequent retrieval such that each of a plurality of savedlog snapshots saved from a plurality of nodes in the automated datastorage library 10 may be aggregated for exporting to a user. When anexport request is received, to export snapshots associated with aparticular event or trigger, snapshot aggregation module 918 and/orsnapshot aggregation module 919 may aggregate any library snapshots,drive snapshots and/or component snapshots related to that event ortrigger. One snapshot aggregation module may be responsible foraggregating all of the snapshots from all of the nodes in the library,or an aggregation module associated with each node may aggregate thesnapshots associated with that node and one of those aggregation modules(or another aggregation module altogether) may aggregate all of theaggregated snapshots from each of the nodes. Trigger event detectionmodule 906/907, snapshot module 926/927, user interface 910/911, and/orsnapshot aggregation module 918/919 may not be present on every node andmay only be present on one node of automated data storage library 10.

As one of ordinary skill in the art will appreciate, the depiction ofthe various functional units in automated data storage library 10 is forpurposes of illustration, as the functional units may be locatedanywhere between nodes or distributed computing components.

In one aspect, the snapshot aggregation module 918/919 may include adata repository of various aggregated snapshots of the automated datastorage library 10 and may include associated metadata information. Theaggregated snapshots may be aggregated from one or more nodes, such asnode 924/925, of the automated data storage library 10. The snapshotmodule 926 may work in concert with processing unit 902 and memory 904to accomplish various aspects of the present invention, such as, forexample capturing a snapshot of one or more logs associated with theautomated data storage library 10 upon detection of a triggering event.The snapshot aggregation module 918 may include saved snapshots of oneor more logs related to the items or actions associated with theautomated data storage library 10 performing one or more commands orfunctions, as described herein.

More specifically, the snapshot aggregation module 918 may aggregateeach of the saved log snapshots from each respective one of theplurality of nodes, such as nodes 924/925, upon receiving a request froma user via the user interface 910 for one or more of the plurality ofsaved log snapshots in the locally saved and stored on each respectiveone of the plurality of nodes, such as nodes 924/925. The snapshotaggregation module 918 may aggregate each of the saved log snapshotsfrom each respective one of the plurality of nodes, such as nodes924/925, as a background operation of the automated data storage library10. The snapshot aggregation module 918 may aggregate each of the savedlog snapshots from each respective one of the plurality of nodes, suchas nodes 924/925, while the automated data storage library 10 is idle.As an alternative option, the snapshot aggregation module 918 mayaggregate each of the saved log snapshots from each respective one ofthe plurality of nodes, such as nodes 924/925, upon detecting an absenceof one or more host commands.

Trigger event detection module 906 may work in concert with processingunit 902 and memory 904 to accomplish various aspects of the presentinvention. For example, the trigger event detection module 906 mayinclude the library firmware of the automated data storage library 10and may be used to detect actions, errors, events (triggers) and take asnapshot of one or more logs for later retrieval. In one aspect, triggerevent detection module 906 may undergo various data analytics functionsassociated with identifying and detecting a triggering event. Triggerevent detection module 906 may make decisions in conjunction with thesnapshot module 926 and/or the snapshot aggregation module 918 to detectthe triggering event so as to immediately trigger the snapshot module tocapture and generate a snapshot of one or more logs of the automateddata storage library 10. More specifically, the trigger event detectionmodule 906 may work in conjunction with the snapshot module 926 forsaving the log snapshot on the node upon detecting, by the trigger eventdetection module 906, at least one of a library error, a drive error, acomponent error, a device error, a host error, activation of adesignated physical or logical log collection mechanism, a library dooris opened, a library door is closed, a component is replaced, a libraryreset, a component reset, a device reset, a reset of a drive,identifying a new unique identifier, when a user logs into the libraryunder a service role, or a combination thereof.

As one of ordinary skill in the art will appreciate, the trigger eventdetection module 906/907, the snapshot aggregation module 918/919,and/or the snapshot module 926/927 may implement mathematical modeling,snapshot functionality, sensing functionality, or other data processingtechnologies to carry out the various mechanisms of the illustratedembodiments. As one of ordinary skill in the art will appreciate,trigger event detection module 906/907, snapshot aggregation module918/919, and/or snapshot module 926/927 may be implemented in libraryfirmware and may be executed by a single processor or by multipleprocessors. For example, different discrete or atomic operationsassociated with the trigger event detection module 906/907, the snapshotaggregation module 918/919, and/or the snapshot module 926/927 may bespread among multiple processors functions, threads, processes, codeimages, files, etc. In addition, trigger event detection module 906/907,the snapshot aggregation module 918/919, and/or the snapshot module926/927 may be implemented in library hardware such as FPGA (FieldProgrammable Gate Array), ASIC (Application Specific IntegratedCircuit), discrete logic, or the like. Still further, trigger eventdetection module 906/907, the snapshot aggregation module 918/919,and/or the snapshot module 926/927 may be implemented in a combinationof library firmware and hardware.

In one aspect, logs may be exported via user interface 910/911 (e.g., agraphical user interface). For example, an operator or servicetechnician may use a user interface 910/911 on a customer port (e.g., anEthernet port, wireless connection, other communications interface ornetwork connection, local touchscreen, local monitor and keyboard, etc.)or a service port (e.g., an Ethernet port, wireless connection, othercommunications interface or network connection, local touchscreen, localmonitor and keyboard, etc.) to export logs or snapshots associated withsnapshot aggregation module 918 before or after servicing the product.If a request is made for these logs (e.g., a root cause analysis) thesnapshot aggregation module 918/919 and the snapshot module 926/927,working in conjunction with each other, may provide to the userinterface 910/911 one or more snapshots saved on each node, such as node924/925, of the automated data storage library 10. In this way, most orall of the information in the one or more logs captured via thesnapshots are preserved and aggregated if, and only if, the savedsnapshots are requested. This functionality is illustrated by examplewith the user interface (GUI) 910/911, which provides information fromthe processing unit 902/903 and memory 904/905, or receives input and/orselection data from the user.

In one aspect, the user interface (e.g., a graphical user interface‘GUI’) may be associated with the library 10. A login operation may beperformed in the user interface 910/911 and navigated therein to displaya “service screen log download link” or selector (e.g., a button) inorder to download any necessary snapshots to a storage device.

With the foregoing functional components, the mechanisms of theillustrated embodiments may manage log snapshots in an automated datastorage library that comprises multiple nodes by a processor. The logsnapshot may be saved on a node associated with the automated datastorage library for subsequent retrieval such that each of a pluralityof saved log snapshots saved from a plurality of nodes in the libraryare aggregated for exporting to a user. In one aspect, the automateddata storage library is a tape library. Upon receiving a request for asnapshot, a plurality of nodes of the automated data storage library(multiple processors or nodes capable of each creating and/or savinglogs) saves one or more logs (e.g. a trigger resulting in logs from eachnode in the library) for later retrieval. When the library exports thesaved logs, the saved logs related to a specific trigger event (or savedtime) may be aggregated from each of the nodes in the library at thattime of export (e.g., aggregated on demand). The one or more logsinclude information related to the library, such as, diagnosticinformation, statistical information, configuration information, backupinformation, database information, or a combination thereof. Logsnapshots may be employed to save logs immediately following a trigger(e.g. a library detected error). A log snapshot comprises saving one ormore logs for potential export at a later time. The aggregation of logsnapshots may occur at the time of, or just before, the export. Theaggregation process may combine some or all of the collection or it maypreserve the original data format.

In an additional aspect, the automated data storage library may comprisea distributed control system that may have two or more nodes performinga function of the library. For example, a library may have a nodeassociated with a movement of an accessor, a node associated withgrabbing data storage cartridges, a node associated with drivecommunication, and the like. A node may comprise one or more processorsor controllers which may have the ability to create and/or collect logs.A log snapshot may be saved when a trigger event is detected.

In one embodiment, when a log snapshot is required, each node in thedistributed control system may save its own snapshot (e.g., a snapshotof each individual node) and the saved snapshot on each individual nodesstays with the node until when the saved snapshot is exported. If atsome point in time, a user requests a particular snapshot for download,the associated snapshots of each node may be aggregated and exported ondemand.

The aggregation of the saved snapshots may occur as a backgroundoperation. The aggregation of the saved snapshots may also occur when nohost commands are detected that are associated with the library. Theaggregation of the saved snapshots may occur when the library is idle(e.g. when the library is not doing anything).

In one aspect, a file names may be used to coordinate multiple logs foraggregation. For example, all related log snapshots may have correlatinginformation in the file name such as, for example, an index or sequencenumber, date and/or time information, type of trigger, etc. Filemetadata may also be used to correlate multiple logs for aggregation.For example, files may have metadata for creation date/time, lastmodification date/time, author, artist, file type, etc.). In anotherembodiment, a table, list, file or other data structure may be used tocorrelate which logs are related for aggregation. For example, thelibrary may comprise a log table that contains a list of snapshots andeach snapshot may have an index, sequence number, date/time, type oftrigger, file name, or other information that allows the library tocorrelate different snapshots for aggregation.

Turning now to FIG. 10, a method 1000 for storing log snapshots in anautomated data storage library by a processor is depicted, in whichvarious aspects of the illustrated embodiments may be implemented. Thefunctionality 1000 may be implemented as a method executed asinstructions on a machine, where the instructions are included on atleast one computer readable medium or on a non-transitorymachine-readable storage medium. The functionality may start in block1010. A log snapshot may be saved on a node associated with theautomated data storage library for subsequent retrieval such that eachof a plurality of saved log snapshots saved from a plurality of nodes inthe library are aggregated for exporting to a user, as in block 1020.For example, a user may be connected to the library through a local orremote interface and may select an action for exporting logs. “User” mayalso refer to a machine (rather than a person). For example, the librarymay have a mechanism to periodically contact a support center machineand export logs. In this example, the library may be the user. Inanother example, a support center machine may contact the library tosend logs (among other things). In this example, the support centermachine may be the user. The functionality 1000 may end at block 1030.

Herein, saved may also be referred to as capturing which may includefreezing (e.g., stop adding or modifying information to a log orsnapshot), collecting (e.g., gathering different logs, files, snapshots,and/or log data), combining (e.g., concatenating files, logs, snapshots,and/or log data), compressing (e.g., compressing files, logs, snapshots,and/or log data), copying (e.g., copying files, logs, snapshots, and/orlog data), saving (e.g., saving files, logs, snapshots, and/or logdata), preserving (e.g., preserving files, logs, snapshots, and/or logdata), organizing (e.g., organizing files, logs, snapshots, and/or logdata), and/or sorting (e.g., sorting files, logs, snapshots, and/or logdata), of information contained in one or more logs, files, orsnapshots.

The one or more logs may include library logs (e.g., logs maintained bylibrary firmware or software), drive logs (e.g., logs maintained byautomated data storage drives), component logs (e.g., logs associatedwith any components of the library such as power supplies, Ethernetswitches, etc.), device logs (e.g., logs associated with any devicesconnected to the library such as a management console, a servicemachine, an encryption key server, etc.). The logs may contain traceinformation (e.g., information related to what the library, drive,component or device was doing), diagnostic information (e.g.,information related to problems or errors that may have been encounteredby the library, drive, component, or device), statistical information(e.g., information related to the performance or usage of variouselements of the library, drive, component, or device), configurationinformation (e.g., information related to settings and preferences ofthe library, drive, component, or device), backup information (e.g., abackup of the state, settings, or configuration of the library, drive,component, or device), database information (e.g., information relatedto any databases that the library, drive, component, or device mayhave). A snapshot of the one or more logs in an automated data storagelibrary may be stored. The snapshot may be stored within the libraryitself (e.g., in an automated data storage drive, in a librarycomponent, in a device associated with the library, on a hard disk, innonvolatile memory, CompactFlash card, etc.) or it may be stored outsidethe library (e.g., on a network attached storage device, on a componentassociated with the library such as a management console, etc.).

In one aspect, the triggering event may be a library detected error(e.g., a failure to move a cartridge), a drive error (e.g. a failure toload a cartridge), a host error (e.g. a command to the library or drivethat results in an illegal request), activation of a designated physicalor logical log collection mechanism (e.g., a dedicated log collectionbutton), opening a library door (e.g., opening a library front door,opening a library back door, opening a library side door, etc.), areplacement of a library component (e.g., a power supply), a reset ofpart or all of the library, a drive reset, a user logs into the libraryunder a service role, and/or identifying a new unique identifier (e.g.,a component serial number or MAC address changes).

Turning now to FIG. 11, a method 1100 for storing log snapshots in anautomated data storage library is depicted, in which various aspects ofthe illustrated embodiments may be implemented. The functionality 1100may be implemented as a method executed as instructions on a machine,where the instructions are included on at least one computer readablemedium or on a non-transitory machine-readable storage medium. Thefunctionality may start in block 1110. A log snapshot may be saved on anode associated with the automated data storage library for subsequentretrieval such that each of a plurality of saved log snapshots savedfrom a plurality of nodes in the library are aggregated for exporting toa user, as in block 1120. In one aspect, the logs may comprise traceinformation (what was the library doing), diagnostic information (whatkinds of error or problems were encountered), statistical information(what was the performance or usage of various library components),configuration information (settings and preferences of the library),backup information (a backup of one or more components of the librarystate, settings, or configuration), database information (the contentsof one more library databases), and/or a combination thereof. A requestis received from a user for one or more snapshots, as in block 1130. Forexample, a user may be connected to the library through a local orremote interface and may select an action for exporting logs. “User” mayalso refer to a machine (rather than a person). For example, the librarymay have a mechanism to periodically contact a support center machineand export logs. In this example, the library may be the user. Inanother example, a support center machine may contact the library tosend logs (among other things). In this example, the support centermachine may be the user. The one or more snapshots (e.g., snapshotsassociated with the request) may be aggregated from each one of thenodes, as in block 1140. The aggregation may occur on demand, while thelibrary is not executing host commands, while the library is idle, or asa background operation as previously discussed. The aggregated snapshotsmay be exported, such as to a user, as in block 1150. The functionality1100 may end at block 1160.

The mechanisms of the illustrated embodiments provide a solution tomaintain the library storage, processor, and/or communication bandwidthfrom being overwhelmed with a large number of log snapshots by storinglog snapshots in an automated data storage library.

For example, a snapshot threshold defining a maximum number of snapshotsthat may be stored may be employed to determine whether the oldestsnapshot is to be overwritten. Alternatively, other algorithms could beused to determine which snapshot to overwrite such as one that isevaluated to be less relevant or less critical than others.

Furthermore, the present invention provides for automated data storagesystems that may select for export log snapshots (e.g., exporting a logbased on a user selection of a specific event or trigger). A userinterface (e.g., a GUI) may display log snapshots to identify and selectassociated logs (individual events or errors which are correlated to aparticular log) recorded in a tape library. Individual events or errorsmay also be displayed and viewed in an event table via the userinterface. In one aspect, one or more logs for export may be displayedbased on a user entering an event time or trigger time. A user mayinsert via the user interface information relating to a time period orevent (timestamp) for log information that the user may need.

Turning now to FIG. 12, a method 1200 for storing log snapshots in anautomated data storage library is depicted, in which various aspects ofthe illustrated embodiments may be implemented. The functionality 1200may be implemented as a method executed as instructions on a machine,where the instructions are included on at least one computer readablemedium or on a non-transitory machine-readable storage medium. Thefunctionality may start in block 1210. One or more log snapshots of anautomated data storage library of an event or trigger displayed on auser interface of a device for exporting according to user definedcriteria such that the one or more snapshots relate to the event ortrigger, wherein the user interface provides an events table forsearching and locating the event or trigger, as in block 1220. The userinterface may provide an events table for searching and locating theevent of interest. The user interface may also provide an indication ofthe presence or absence of snapshots. The functionality 1200 may end atblock 1230.

In one aspect, in conjunction with and/or as part of at least one blockof FIG. 12, the operation of 1200 may include one or more of each of thefollowing. The operation of 1200 may include selecting the event ortrigger via the user interface to enable exportation of the one or morelog snapshots corresponding to the event or trigger, displaying via theuser interface the one or more log snapshots for exporting according toan event time associated with the event or a trigger time associatedwith the trigger, and/or exporting the one or more log snapshotsaccording to the event or trigger selected by the user that correspondsto the one or more log snapshots.

The operation of 1200 may include searching a list of snapshots toidentify the one or more log snapshots based on a defined date/timerange. Each event may be paired with the one or more log snapshots. Thedate/time data may be associated in trace information that is includedin the one or more log snapshots so as to identify the one or more logsnapshots based on a defined date/time range.

The present invention may be a system, a method, and/or a computerprogram product. The computer program product may include a computerreadable storage medium (or media) having computer readable programinstructions thereon for causing a processor to carry out aspects of thepresent invention.

The computer readable storage medium can be a tangible device that canretain and store instructions for use by an instruction executiondevice. The computer readable storage medium may be, for example, but isnot limited to, an electronic storage device, a magnetic storage device,an optical storage device, an electromagnetic storage device, asemiconductor storage device, or any suitable combination of theforegoing. A non-exhaustive list of more specific examples of thecomputer readable storage medium includes the following: a portablecomputer diskette, a hard disk, a random access memory (RAM), aread-only memory (ROM), an erasable programmable read-only memory(EPROM, EEPROM or Flash memory), a static random access memory (SRAM),dynamic random access memory (DRAM), a portable compact disc read-onlymemory (CD-ROM), a digital versatile disk (DVD), a memory stick, afloppy disk, a CompactFlash (CF) card, a Secure Digital (SD) card, aminiSD card, a microSD card, a mechanically encoded device such aspunch-cards or raised structures in a groove having instructionsrecorded thereon, and any suitable combination of the foregoing. Acomputer readable storage medium, as used herein, is not to be construedas being transitory signals per se, such as radio waves or other freelypropagating electromagnetic waves, electromagnetic waves propagatingthrough a waveguide or other transmission media (e.g., light pulsespassing through a fiber-optic cable), or electrical signals transmittedthrough a wire.

Computer readable program instructions described herein can bedownloaded to respective computing/processing devices from a computerreadable storage medium or to an external computer or external storagedevice via a network, for example, the Internet, a local area network, awide area network and/or a wireless network. The network may comprisecopper transmission cables, optical transmission fibers, wirelesstransmission, routers, firewalls, switches, gateway computers and/oredge servers. A network adapter card or network interface in eachcomputing/processing device receives computer readable programinstructions from the network and forwards the computer readable programinstructions for storage in a computer readable storage medium withinthe respective computing/processing device.

Computer readable program instructions for carrying out operations ofthe present invention may be assembler instructions,instruction-set-architecture (ISA) instructions, machine instructions,machine dependent instructions, microcode, firmware instructions,state-setting data, or either source code or object code written in anycombination of one or more programming languages, including an objectoriented programming language such as Smalltalk, C++ or the like, andconventional procedural programming languages, such as the “C”programming language or similar programming languages. In one aspect, acomputer may include a library controller. The computer readable programinstructions may execute entirely on the user's computer, partly on theuser's computer, as a stand-alone software package, partly on the user'scomputer and partly on a remote computer or entirely on the remotecomputer or server. In the latter scenario, the remote computer may beconnected to the user's computer through any type of network, includinga local area network (LAN) or a wide area network (WAN), or theconnection may be made to an external computer (for example, through theInternet using an Internet Service Provider). In some embodiments,electronic circuitry including, for example, programmable logiccircuitry, field-programmable gate arrays (FPGA), or programmable logicarrays (PLA) may execute the computer readable program instructions byutilizing state information of the computer readable programinstructions to personalize the electronic circuitry, in order toperform aspects of the present invention.

Aspects of the present invention are described herein with reference toflowchart illustrations and/or block diagrams of methods, apparatus(systems), and computer program products according to embodiments of theinvention. It will be understood that each block of the flowchartillustrations and/or block diagrams, and combinations of blocks in theflowchart illustrations and/or block diagrams, can be implemented bycomputer readable program instructions.

These computer readable program instructions may be provided to one ormore processors of a general purpose computer, special purpose computer,or other programmable data processing apparatus to produce a machine,such that the instructions, which execute via the one or more processorsof the computer or other programmable data processing apparatus, createmeans for implementing the functions/acts specified in the flowchartsand/or block diagram block or blocks. These computer readable programinstructions may also be stored in a computer readable storage mediumthat can direct a computer, a programmable data processing apparatus,and/or other devices to function in a particular manner, such that thecomputer readable storage medium having instructions stored thereincomprises an article of manufacture including instructions whichimplement aspects of the function/act specified in the flowcharts and/orblock diagram block or blocks.

The computer readable program instructions may also be loaded onto acomputer, other programmable data processing apparatus, or other deviceto cause a series of operational steps to be performed on the computer,other programmable apparatus or other device to produce a computerimplemented process, such that the instructions which execute on thecomputer, other programmable apparatus, or other device implement thefunctions/acts specified in the flowcharts and/or block diagram block orblocks.

The flowcharts and block diagrams in the Figures illustrate thearchitecture, functionality, and operation of possible implementationsof systems, methods, and computer program products according to variousembodiments of the present invention. In this regard, each block in theflowcharts or block diagrams may represent a module, segment, or portionof instructions, which comprises one or more executable instructions forimplementing the specified logical function(s). In some alternativeimplementations, the functions noted in the block may occur out of theorder noted in the figures. For example, two blocks shown in successionmay, in fact, be executed substantially concurrently, or the blocks maysometimes be executed in the reverse order, depending upon thefunctionality involved. It will also be noted that each block of theblock diagrams and/or flowchart illustrations, and combinations ofblocks in the block diagrams and/or flowchart illustrations, can beimplemented by special purpose hardware-based systems that perform thespecified functions or acts or carry out combinations of special purposehardware and computer instructions. In addition, some blocks may beomitted without deviating from the scope of the invention.

1. A method, by one or more processors, for selecting log snapshots forexport in an automated data storage library, comprising: selecting oneor more log snapshots of an automated data storage library of an eventor trigger displayed on a user interface of a device for exportingaccording to user defined criteria such that the one or more snapshotsrelate to the event or trigger, wherein the user interface provides anevents table for searching and locating the event or trigger.
 2. Themethod of claim 1, further including selecting the event or trigger viathe user interface to enable exportation of the one or more logsnapshots corresponding to the event or trigger.
 3. The method of claim1, further including displaying via the user interface the one or morelog snapshots for exporting according to an event time period associatedwith an event or a trigger time period associated with the trigger. 4.The method of claim 1, further including exporting the one or more logsnapshots according to the event or trigger selected by the user thatcorresponds to the one or more log snapshots.
 5. The method of claim 1,further including searching a list of snapshots to identify the one ormore log snapshots based on a defined time period range.
 6. The methodof claim 1, further including pairing each event with the one or morelog snapshots.
 7. The method of claim 1, further including associatingtime period data in trace information that is included in the one ormore log snapshots so as to identify the one or more log snapshots basedon a defined time period range.
 8. A system for selecting log snapshotsfor export in an automated data storage library, comprising: one or moreprocessors with executable instructions that when executed cause thesystem to: select one or more log snapshots of an automated data storagelibrary of an event or trigger displayed on a user interface of a devicefor exporting according to user defined criteria such that the one ormore snapshots relate to the event or trigger, wherein the userinterface provides an events table for searching and locating the eventor trigger.
 9. The system of claim 8, wherein the executableinstructions further select the event or trigger via the user interfaceto enable exportation of the one or more log snapshots corresponding tothe event or trigger.
 10. The system of claim 8, wherein the executableinstructions further display via the user interface the one or more logsnapshots for exporting according to an event time period associatedwith an event or a trigger time period associated with the trigger. 11.The system of claim 8, wherein the executable instructions furtherexport the one or more log snapshots according to the event or triggerselected by the user that corresponds to the one or more log snapshots.12. The system of claim 8, wherein the executable instructions furthersearch a list of snapshots to identify the one or more log snapshotsbased on a defined time period range.
 13. The system of claim 8, whereinthe executable instructions further pair each event with the one or morelog snapshots so as to identify the one or more log snapshots based on adefined time period range.
 14. The system of claim 8, wherein theexecutable instructions further associate time period data in traceinformation that is included in the one or more log snapshots.
 15. Acomputer program product for, by one or more processors, selecting logsnapshots for export in an automated data storage library, the computerprogram product comprising a non-transitory computer-readable storagemedium having computer-readable program code portions stored therein,the computer-readable program code portions comprising: an executableportion that selects one or more log snapshots of an automated datastorage library of an event or trigger displayed on a user interface ofa device for exporting according to user defined criteria such that theone or more snapshots relate to the event or trigger, wherein the userinterface provides an events table for searching and locating the eventor trigger.
 16. The computer program product of claim 15, furtherincluding an executable portion that selects the event or trigger viathe user interface to enable exportation of the one or more logsnapshots corresponding to the event or trigger.
 17. The computerprogram product of claim 15, further including an executable portionthat displays via the user interface the one or more log snapshots forexporting according to an event time period associated with an event ora trigger time period associated with the trigger.
 18. The computerprogram product of claim 15, further including an executable portionthat exports the one or more log snapshots according to the event ortrigger selected by the user that corresponds to the one or more logsnapshots.
 19. The computer program product of claim 15, furtherincluding an executable portion that: searches a list of snapshots toidentify the one or more log snapshots based on a defined time periodrange, or associates time period data in trace information that isincluded in the one or more log snapshots.
 20. The computer programproduct of claim 15, further including an executable portion that pairseach event with the one or more log snapshots so as to identify the oneor more log snapshots based on a defined time period range.